﻿@using TryMudBlazor.Client.Services
@inherits LayoutComponentBase

<MudThemeProvider IsDarkMode="@LayoutService.IsDarkMode" />
<MudPopoverProvider />

<div class="main">
	<div class="content px-4">
		@Body
	</div>
</div>

@code {
	[Inject] private LayoutService LayoutService { get; set; }

	protected override async Task OnInitializedAsync()
	{
		await LayoutService.ApplyUserPreferences(false);
		await base.OnInitializedAsync();
	}
}